<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
	<!-- BEGIN PAGE HEADER-->
	<div class="row-fluid">
		<div class="span12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
			<h3 class="page-title"> Page d'accueil <small>Slider ,à propos</small></h3>
			<ul class="breadcrumb">
				<li>
					<i class="icon-home"></i>
					<a href="<?php echo base_url() ?>admin_home">Accueil</a>
					<span class="icon-angle-right"></span>
				</li>
				<li>
					<i class="icon-home"></i>
					<a href="<?php echo base_url() ?>admin_home">A propos</a>
				</li>
			</ul>
			<!-- END PAGE TITLE & BREADCRUMB-->
		</div>
	</div>
	<!-- END PAGE HEADER à propos contenu-->
	<!-- BEGIN slider -->
	
	<div class="row-fluid">
		<div class="span12">
			<?php if (isset($error_upload)) 
			{
			echo 	'<div class="alert alert-error">
						<button data-dismiss="alert" class="close"></button>
						<strong>Erreur!</strong>.'.$error_upload.'
					</div>';
			} ?>
			<!-- BEGIN Portlet PORTLET-->
			<div class="portlet box red">
				<div class="portlet-title">
					<div class="caption">
						<i class="icon-reorder"></i>A propos
					</div>
					<div class="tools">
						<a href="javascript:;" class="collapse"></a>
						<a href="javascript:;" class="remove"></a>
					</div>
				</div>
				<div class="portlet-body">
					<div class="row-fluid">
						<div class="span12">
							<div class="portlet box grey tabbable">
								<div class="portlet-title">
									<div class="caption">
										<i class="icon-reorder"></i>Contenu 
									</div>
								</div>
								<div class="portlet-body">
									<div class="tabbable portlet-tabs">
										<ul class="nav nav-tabs">
											<li>
												<a href="#portlet_tab_1" data-toggle="tab" style="color:#E02222;">Text Anglais</a>
											</li>
											<li class="active">
												<a href="#portlet_tab_2" data-toggle="tab" style="color:#E02222;">Text Français</a>
											</li>
										</ul>
										<?php 
											if ($results != null): 
                    						foreach ($results as $row):
										?>
										
										<div class="tab-content">
											<div class="tab-pane active" id="portlet_tab_2">
												<!-- BEGIN FORM-->
												<?php echo form_open_multipart('admin_home/update_about_fr/'.$row->id_about,array('id' => 'formID','class' => 'form-horizontal' ))?>
												<div class="alert alert-error hide">
													<button class="close" data-dismiss="alert"></button>
													Vous avez des erreurs. S'il vous plaît vérifier ci-dessous.
												</div>
												<div class="alert alert-success hide" style="<?php if(isset($update)){echo $update;}; ?>">
													<button class="close" data-dismiss="alert"></button>
													La mis à jour du contenu est réussi!
												</div>
												<div class="control-group">
													<label class="control-label">Image à Modifier</label>
													<div class="controls">
														<input type="file" class="default validate[required]" name="userfile">
														<br><br>
														<span class="label label-important">NOTE!</span>
														<span>
															 l'image doit être en format png et doit avoir : 340px Hauteur et 327px de largeur
														</span>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label">1er paragraphe</label>
													<div class="controls">
														<textarea class="span8 m-wrap validate[required,minSize[100]]" rows="3" data-required="2" name="comment"><?php echo $row->fr_content ?></textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label">Lire la suite</label>
													<div class="controls">
														<textarea class="span8 m-wrap validate[required,minSize[100]]" rows="3" data-required name="second_comment"><?php echo $row->fr_suite ?></textarea>
													</div>
												</div>
												<div class="form-actions">
													<button type="submit" class="btn red">
														<i class="icon-ok icon-white"></i> Valider
													</button>
													<button type="button" class="btn">
														<i class="icon-remove icon-white"></i> Annuler
													</button>
												</div>
												<?php echo form_close(); ?>
												<!-- END FORM-->
											</div>
											<div class="tab-pane" id="portlet_tab_1">
												<!-- BEGIN FORM-->
												<?php echo form_open('admin_home/update_about_en/'.$row->id_about,array('id' => 'form2','class' => 'form-horizontal' ))?>
												<div class="alert alert-error hide">
													<button class="close" data-dismiss="alert"></button>
													Vous avez des erreurs. S'il vous plaît vérifier ci-dessous.
												</div>
												<div class="alert alert-success hide">
													<button class="close" data-dismiss="alert"></button>
													La validation de votre formulaire est réussi!
												</div>
												<div class="control-group">
													<label class="control-label">First paragraph</label>
													<div class="controls">
														<textarea class="span8 m-wrap validate[required,minSize[100]]" rows="3" data-required name="comment_en"><?php echo $row->en_content ?></textarea>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label">Read more</label>
													<div class="controls">
														<textarea class="span8 m-wrap validate[required,minSize[100]]" rows="3" data-required name="second_comment_en"><?php echo $row->en_suite ?></textarea>
													</div>
												</div>
												<div class="form-actions">
													<button type="submit" class="btn red">
														<i class="icon-ok icon-white"></i> Submit
													</button>
													<button type="button" class="btn">
														<i class="icon-remove icon-white"></i> Cancel
													</button>
												</div>
												<?php echo form_close(); ?>
												<!-- END FORM-->
											</div>
										</div>
										<?php
											endforeach;
											endif;
										?>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- END Portlet PORTLET-->
		</div>
	</div>
	<!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->
